home *** CD-ROM | disk | FTP | other *** search
- Path: in1.uu.net!tandem!usenet
- From: Anatoli Mandelchtam <tolik@tarley_pc.loc201.tandem.com>
- Newsgroups: comp.lang.c++
- Subject: Re: What are the differences between structures and classes in C++ ?
- Date: Mon, 08 Apr 1996 22:21:57 -0700
- Organization: Tandem Computers Inc., Cupertino, CA
- Message-ID: <3169F3F5.4D@tarley_pc.loc201.tandem.com>
- References: <4k5m65$av@hpscit.sc.hp.com> <DpG53J.Hsz@presby.edu> <4k83j3$a56@hpscit.sc.hp.com> <marnoldDpHvED.E0t@netcom.com> <31696B8E.6461@datalytics.com>
- NNTP-Posting-Host: miket_home1.fnord.tandem.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (Win95; I)
-
- Rob Stewart wrote:
- >
- > Actually, classes *are* structs, since struct came first. Early
- > debuggers would also reveal this (at least dbx on the UNIX side
- > did). What you declared a class the debugger revealed as a
- > struct.
-
- Nope. Structs *are* classes since classes include all features of
- structs _and_ additional functionality. And the fact that early
- debuggers carry some rudimentary naming conventions only points
- out that they were created in a hurry or by people who were too
- lazy to do appropriate changes.
-
- Regards,
-
- Anatoli.
-